package vip.sweet.sys.modular.department.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ASUS
 * @Date 2025/4/10 12:01
 * @Descripition
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(description = "新增部门参数")
public class AddDepartmentParams {
    @Schema(description = "部门名称")
    @NotBlank(message = "部门名称不能为空")
    private String name;
    @Schema(description = "部门编码")
    @NotBlank(message = "部门编码不能为空")
    private String code;
    @Schema(description = "备注")
    private String remark;
    @NotBlank(message = "父级id不能为空")
    @Schema(description = "父级id")
    private String parentId;
}
